<template>
  <div class="content">
    <div class="image">
      <img src="../assets/image/logoa.png" />
    </div>
    <div class="nav">
      <li
        v-for="(item, index) in list"
        :key="item + index"
        :class="xb === index ? 'active' : ''"
        @click="Theindex(index)"
      >
        {{ item }}
      </li>
    </div>
  </div>
</template>
<script>
export default {
  name: "header",
  data() {
    return {
      xb: 1,
      list: ["首页", "区块浏览器", "服务内容", "OEM", "新闻动态","关于奥云"],
    };
  },
};
</script>
<style scoped>
.content {
  height: 100px;
  width: 100%;
  background-color: #006ab7;
  position: absolute;
  min-width: 1920px;
}
.image img {
  width: 114px;
  height: 37px;
  position: absolute;
  bottom: 20px;
  left: 20%;
}
.nav li {
  list-style: none;
  display: inline-block;
  margin-left: 50px;
  color: #ffffff;
  height: 40px;
  line-height: 40px;
  width: 100px;
  text-align: center;
}
.nav {
  width: 1100px;
  position: absolute;
  left: 26%;
  top: 57%;
}
.active {
  border-bottom: 3px solid #ffffff;
}
</style>